package com.tangguo.vshop.domain;

import java.util.List;

import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.DBRef;

/**
 * 商品
 * @author doonly
 *
 */
public class Product extends BaseEntity{
	@DBRef private Mainbody mainbody;
	private String code;
	private String helpcode;
	private String sid;
	private String name;
	private String spec;
	private String manufacturer;
	private Double marketPrice;
	private Double price;
	private Integer stock;
	private List<String>images;
	@Transient
	private Double cartPrice;
	@Transient
	private Integer cartQty;
	
	public Mainbody getMainbody() {
		return mainbody;
	}
	public void setMainbody(Mainbody mainbody) {
		this.mainbody = mainbody;
	}
	
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	 
	public String getHelpcode() {
		return helpcode;
	}
	public void setHelpcode(String helpcode) {
		this.helpcode = helpcode;
	}
	public String getSid() {
		return sid;
	}
	public void setSid(String sid) {
		this.sid = sid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSpec() {
		return spec;
	}
	public void setSpec(String spec) {
		this.spec = spec;
	}
	public String getManufacturer() {
		return manufacturer;
	}
	public void setManufacturer(String manufacturer) {
		this.manufacturer = manufacturer;
	}
	public Double getMarketPrice() {
		return marketPrice;
	}
	public void setMarketPrice(Double marketPrice) {
		this.marketPrice = marketPrice;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public Integer getStock() {
		return stock;
	}
	public void setStock(Integer stock) {
		this.stock = stock;
	}
	public List<String> getImages() {
		return images;
	}
	public void setImages(List<String> images) {
		this.images = images;
	}
	public Double getCartPrice() {
		return cartPrice;
	}
	public void setCartPrice(Double cartPrice) {
		this.cartPrice = cartPrice;
	}
	public Integer getCartQty() {
		return cartQty;
	}
	public void setCartQty(Integer cartQty) {
		this.cartQty = cartQty;
	}
	
	
}
